<template>
    <div>
        <breal></breal>
        <el-card>
         <el-row>
           <el-col>
              <el-button type="primary">添加用户</el-button>
           </el-col>
         </el-row>
        <!-- 表格 -->
        
        </el-card>
    </div>
</template>
<script>
import breal from '../Bread'
export default {
   components:{
     breal
   },
  data() {
    return {
       
    };
  },
  created() {
    this.addForm();
  },
  methods: {
    async addForm() {
     const res=await this.$http.get("categories")
     console.log(res);
      let { data, meta } = res.data;
      if (meta.status == 200) {
        this.tableData = data;
        this.total = data.total;
      }
    },
   
  }
};
</script>
<style lang="scss">

</style>
